Integrand size = 16, antiderivative size = 126 \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=-\frac {1}{12 x^4}+\frac {4}{9 x}-\frac {\arctan \left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {\arctan \left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )}{18\ 3^{5/6}}-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{54 \sqrt [3]{3}}+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {\log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right )}{108 \sqrt [3]{3}} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.625, Rules used = {1382, 1518, 1524, 298, 31, 648, 632, 210, 642, 631} \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=-\frac {\arctan \left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {\arctan \left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )}{18\ 3^{5/6}}-\frac {1}{12 x^4}+\frac {1}{12} \log \left (x^2-x+1\right )-\frac {\log \left (x^2-\sqrt [3]{3} x+3^{2/3}\right )}{108 \sqrt [3]{3}}+\frac {4}{9 x}-\frac {1}{6} \log (x+1)+\frac {\log \left (x+\sqrt [3]{3}\right )}{54 \sqrt [3]{3}} \]
[In]
[Out]
Rule 31
Rule 210
Rule 298
Rule 631
Rule 632
Rule 642
Rule 648
Rule 1382
Rule 1518
Rule 1524
Rubi steps \begin{align*} \text {integral}& = -\frac {1}{12 x^4}+\frac {1}{12} \int \frac {-16-4 x^3}{x^2 \left (3+4 x^3+x^6\right )} \, dx \\ & = -\frac {1}{12 x^4}+\frac {4}{9 x}-\frac {1}{36} \int \frac {x \left (-52-16 x^3\right )}{3+4 x^3+x^6} \, dx \\ & = -\frac {1}{12 x^4}+\frac {4}{9 x}-\frac {1}{18} \int \frac {x}{3+x^3} \, dx+\frac {1}{2} \int \frac {x}{1+x^3} \, dx \\ & = -\frac {1}{12 x^4}+\frac {4}{9 x}-\frac {1}{6} \int \frac {1}{1+x} \, dx+\frac {1}{6} \int \frac {1+x}{1-x+x^2} \, dx+\frac {\int \frac {1}{\sqrt [3]{3}+x} \, dx}{54 \sqrt [3]{3}}-\frac {\int \frac {\sqrt [3]{3}+x}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx}{54 \sqrt [3]{3}} \\ & = -\frac {1}{12 x^4}+\frac {4}{9 x}-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{54 \sqrt [3]{3}}-\frac {1}{36} \int \frac {1}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx+\frac {1}{12} \int \frac {-1+2 x}{1-x+x^2} \, dx+\frac {1}{4} \int \frac {1}{1-x+x^2} \, dx-\frac {\int \frac {-\sqrt [3]{3}+2 x}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx}{108 \sqrt [3]{3}} \\ & = -\frac {1}{12 x^4}+\frac {4}{9 x}-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{54 \sqrt [3]{3}}+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {\log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right )}{108 \sqrt [3]{3}}-\frac {1}{2} \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 x\right )-\frac {\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 x}{\sqrt [3]{3}}\right )}{18 \sqrt [3]{3}} \\ & = -\frac {1}{12 x^4}+\frac {4}{9 x}-\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {\tan ^{-1}\left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )}{18\ 3^{5/6}}-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{54 \sqrt [3]{3}}+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {\log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right )}{108 \sqrt [3]{3}} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 118, normalized size of antiderivative = 0.94 \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=\frac {1}{324} \left (-\frac {27}{x^4}+\frac {144}{x}+6 \sqrt [6]{3} \arctan \left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )+54 \sqrt {3} \arctan \left (\frac {-1+2 x}{\sqrt {3}}\right )-54 \log (1+x)+2\ 3^{2/3} \log \left (3+3^{2/3} x\right )+27 \log \left (1-x+x^2\right )-3^{2/3} \log \left (3-3^{2/3} x+\sqrt [3]{3} x^2\right )\right ) \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.07 (sec) , antiderivative size = 67, normalized size of antiderivative = 0.53
method | result | size |
risch | \(\frac {\frac {4 x^{3}}{9}-\frac {1}{12}}{x^{4}}-\frac {\ln \left (x +1\right )}{6}+\frac {\ln \left (x^{2}-x +1\right )}{12}+\frac {\sqrt {3}\, \arctan \left (\frac {2 \left (x -\frac {1}{2}\right ) \sqrt {3}}{3}\right )}{6}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (3 \textit {\_Z}^{3}-1\right )}{\sum }\textit {\_R} \ln \left (3 \textit {\_R}^{2}+x \right )\right )}{54}\) | \(67\) |
default | \(-\frac {1}{12 x^{4}}+\frac {4}{9 x}-\frac {\ln \left (x +1\right )}{6}+\frac {3^{\frac {2}{3}} \ln \left (3^{\frac {1}{3}}+x \right )}{162}-\frac {3^{\frac {2}{3}} \ln \left (3^{\frac {2}{3}}-3^{\frac {1}{3}} x +x^{2}\right )}{324}-\frac {3^{\frac {1}{6}} \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 \,3^{\frac {2}{3}} x}{3}-1\right )}{3}\right )}{54}+\frac {\ln \left (x^{2}-x +1\right )}{12}+\frac {\sqrt {3}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {3}}{3}\right )}{6}\) | \(94\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.89 \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=-\frac {3^{\frac {2}{3}} x^{4} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) - 2 \cdot 3^{\frac {2}{3}} x^{4} \log \left (x + 3^{\frac {1}{3}}\right ) - 54 \, \sqrt {3} x^{4} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - 6 \cdot 3^{\frac {1}{6}} x^{4} \arctan \left (-\frac {1}{3} \cdot 3^{\frac {1}{6}} {\left (2 \, x - 3^{\frac {1}{3}}\right )}\right ) - 27 \, x^{4} \log \left (x^{2} - x + 1\right ) + 54 \, x^{4} \log \left (x + 1\right ) - 144 \, x^{3} + 27}{324 \, x^{4}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 1.20 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.12 \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=- \frac {\log {\left (x + 1 \right )}}{6} + \left (\frac {1}{12} - \frac {\sqrt {3} i}{12}\right ) \log {\left (x + \frac {4782978 \left (\frac {1}{12} - \frac {\sqrt {3} i}{12}\right )^{2}}{547} + \frac {1028869776 \left (\frac {1}{12} - \frac {\sqrt {3} i}{12}\right )^{5}}{547} \right )} + \left (\frac {1}{12} + \frac {\sqrt {3} i}{12}\right ) \log {\left (x + \frac {1028869776 \left (\frac {1}{12} + \frac {\sqrt {3} i}{12}\right )^{5}}{547} + \frac {4782978 \left (\frac {1}{12} + \frac {\sqrt {3} i}{12}\right )^{2}}{547} \right )} + \operatorname {RootSum} {\left (472392 t^{3} - 1, \left ( t \mapsto t \log {\left (\frac {1028869776 t^{5}}{547} + \frac {4782978 t^{2}}{547} + x \right )} \right )\right )} + \frac {16 x^{3} - 3}{36 x^{4}} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.76 \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=-\frac {1}{324} \cdot 3^{\frac {2}{3}} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) + \frac {1}{162} \cdot 3^{\frac {2}{3}} \log \left (x + 3^{\frac {1}{3}}\right ) + \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {1}{54} \cdot 3^{\frac {1}{6}} \arctan \left (\frac {1}{3} \cdot 3^{\frac {1}{6}} {\left (2 \, x - 3^{\frac {1}{3}}\right )}\right ) + \frac {16 \, x^{3} - 3}{36 \, x^{4}} + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left (x + 1\right ) \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 98, normalized size of antiderivative = 0.78 \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=-\frac {1}{324} \cdot 3^{\frac {2}{3}} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) + \frac {1}{162} \cdot 3^{\frac {2}{3}} \log \left ({\left | x + 3^{\frac {1}{3}} \right |}\right ) + \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {1}{54} \cdot 3^{\frac {1}{6}} \arctan \left (\frac {1}{3} \cdot 3^{\frac {1}{6}} {\left (2 \, x - 3^{\frac {1}{3}}\right )}\right ) + \frac {16 \, x^{3} - 3}{36 \, x^{4}} + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left ({\left | x + 1 \right |}\right ) \]
[In]
[Out]
Time = 0.11 (sec) , antiderivative size = 124, normalized size of antiderivative = 0.98 \[ \int \frac {1}{x^5 \left (3+4 x^3+x^6\right )} \, dx=\frac {3^{2/3}\,\ln \left (x+3^{1/3}\right )}{162}-\frac {\ln \left (x+1\right )}{6}-\ln \left (x-\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {1}{12}+\frac {\sqrt {3}\,1{}\mathrm {i}}{12}\right )+\ln \left (x-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{12}+\frac {\sqrt {3}\,1{}\mathrm {i}}{12}\right )+\frac {\frac {4\,x^3}{9}-\frac {1}{12}}{x^4}-\ln \left (x-\frac {3^{1/3}}{2}-\frac {3^{5/6}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {3^{2/3}}{324}-\frac {3^{1/6}\,1{}\mathrm {i}}{108}\right )-\ln \left (x-\frac {3^{1/3}}{2}+\frac {3^{5/6}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {3^{2/3}}{324}+\frac {3^{1/6}\,1{}\mathrm {i}}{108}\right ) \]
[In]
[Out]